<?php

namespace sil18\VitrineBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class MenuController extends Controller
{
   public function listeCategoriesAction()
    {
       $listeCategories = $this->getDoctrine()->getManager()
                        ->getRepository('sil18VitrineBundle:Categorie')
                        ->findAll();
        return $this->render('sil18VitrineBundle:Default:menu.html.twig',
                         array('listeCategories' => $listeCategories));
    }
}
